// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addPost POST /api/userinterfance/add */
export async function addPostUsingPOST1(
  body: API.UserInterfanceInfoAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponselong>('/api/userinterfance/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deletePost POST /api/userinterfance/delete */
export async function deletePostUsingPOST1(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseboolean>('/api/userinterfance/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getPostById GET /api/userinterfance/get */
export async function getPostByIdUsingGET1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getPostByIdUsingGET1Params,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseUserInterfanceInfo>('/api/userinterfance/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listPost POST /api/userinterfance/list */
export async function listPostUsingPOST1(
  body: API.UserInterfanceInfoQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListUserInterfanceInfo>('/api/userinterfance/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listPostByPage POST /api/userinterfance/list/page */
export async function listPostByPageUsingPOST1(
  body: API.UserInterfanceInfoQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseIPageUserInterfanceInfo>('/api/userinterfance/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updatePost POST /api/userinterfance/update */
export async function updatePostUsingPOST1(
  body: API.UserInterfanceInfoUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseboolean>('/api/userinterfance/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
